import { createStore, applyMiddleware } from 'redux';
import reducer from './reducers/countReducer';
// import logger from './middleware/logger';
// import test from './middleware/test';
import createSagaMiddleware from 'redux-saga';
import counterSaga from './sagas/counter.saga';

const sagaMiddleware = createSagaMiddleware();

const store = createStore(reducer, applyMiddleware(sagaMiddleware));

export default store;

sagaMiddleware.run(counterSaga);
